﻿<%@ Page Title="添加新角色-RBAC" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Add.aspx.cs" Inherits="RBAC.Administry.Role.Add" %>
<%@ Register Src="../Control/ActionReport.ascx" TagName="ActionReport" TagPrefix="uc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <link href="../style/css/jquery.jgrowl.css" rel="stylesheet" type="text/css" />
    <script src="../script/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script src="../script/jquery.jgrowl_compressed.js" type="text/javascript"></script>
    
    <script type="text/javascript">
        function done() {
            $.jGrowl("添加成功!", { life: 2000 });
        }
        function reset() {
            document.forms[0].reset();
        }
    </script>
    
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="main" runat="server">
    <asp:ScriptManager runat="server" />
    <h2 class="pagetitle role-add">添加新角色</h2>
    <fieldset>
        <legend>请填写表单:</legend>
        <p>
            <label>
                名称</label><br />
            <asp:TextBox ID="id" runat="server" MaxLength="64" CssClass="half" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="id"
                Display="Dynamic" ErrorMessage="名称必须填写">
            </asp:RequiredFieldValidator>
        </p>
        <p>
            <label>
                描述</label><br />
            <asp:TextBox ID="display" runat="server" MaxLength="640" CssClass="half" />
        </p>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <p>
                    <asp:LinkButton ID="submit" runat="server" CssClass="btn" OnClick="submit_Click">
                        <span class="icon icon-ok"></span>确定
                    </asp:LinkButton>
                    <a href="javascript:void(0)" onclick="reset()" class="btn">
                        <span class="icon icon-reset"></span>重置
                    </a>
                </p>
            </ContentTemplate>
        </asp:UpdatePanel>

    </fieldset>
    <p>
        <a href="List.aspx">&laquo;&nbsp;返回角色清单</a>
    </p>
</asp:Content>
